package com.hxgz.steel.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.Data;

@Data
@ApiModel("用户表对象模型")
public class User {

  private Long id;

  @ApiModelProperty("微信标识")
  private String openid;

  @ApiModelProperty("头像")
  private String headpic;

  @ApiModelProperty("真实姓名")
  private String realName;

  @ApiModelProperty("银行卡号")
  private String bankNo;

  @ApiModelProperty("身份证号")
  private String idno;

  @ApiModelProperty("账号")
  private String username;

  @ApiModelProperty("密码")
  private String password;

  @ApiModelProperty("手机")
  private String phone;

  @ApiModelProperty("角色")
  private Integer role;

  @ApiModelProperty("固话")
  private String tel;

  @ApiModelProperty("身份证正面")
  private String idpicUp;

  @ApiModelProperty("身份证反面")
  private String idpicDown;

  @ApiModelProperty("积分余额")
  private Integer score;

  @ApiModelProperty("认证状态 0未认证 1待审核 2审核未通过 3审核已通过")
  private Integer status;

  @ApiModelProperty("认证时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date authenticationTime;

  @ApiModelProperty("创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
  private Date createTime;

  public User() {
  }

  @ApiModelProperty("修改时间")

  private Date updateTime;

  public User(Long id, String openid, String headpic, String realName, String bankNo,
      String idno, String username, String password, String phone, Integer role, String tel,
      String idpicUp, String idpicDown, Integer score, Integer status,
      Date authenticationTime, Date createTime, Date updateTime) {
    this.id = id;
    this.openid = openid;
    this.headpic = headpic;
    this.realName = realName;
    this.bankNo = bankNo;
    this.idno = idno;
    this.username = username;
    this.password = password;
    this.phone = phone;
    this.role = role;
    this.tel = tel;
    this.idpicUp = idpicUp;
    this.idpicDown = idpicDown;
    this.score = score;
    this.status = status;
    this.authenticationTime = authenticationTime;
    this.createTime = createTime;
    this.updateTime = updateTime;
  }

  public Long getId() {
    return id;
  }
  public void setId(Long id) {
    this.id = id;
  }

  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid;
  }

  public String getHeadpic() {
    return headpic;
  }

  public void setHeadpic(String headpic) {
    this.headpic = headpic;
  }

  public String getRealName() {
    return realName;
  }

  public void setRealName(String realName) {
    this.realName = realName;
  }

  public String getBankNo() {
    return bankNo;
  }

  public void setBankNo(String bankNo) {
    this.bankNo = bankNo;
  }

  public String getIdno() {
    return idno;
  }

  public void setIdno(String idno) {
    this.idno = idno;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Integer getRole() {
    return role;
  }

  public void setRole(Integer role) {
    this.role = role;
  }

  public String getTel() {
    return tel;
  }

  public void setTel(String tel) {
    this.tel = tel;
  }

  public String getIdpicUp() {
    return idpicUp;
  }

  public void setIdpicUp(String idpicUp) {
    this.idpicUp = idpicUp;
  }

  public String getIdpicDown() {
    return idpicDown;
  }

  public void setIdpicDown(String idpicDown) {
    this.idpicDown = idpicDown;
  }

  public Integer getScore() {
    return score;
  }

  public void setScore(Integer score) {
    this.score = score;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Date getAuthenticationTime() {
    return authenticationTime;
  }

  public void setAuthenticationTime(Date authenticationTime) {
    this.authenticationTime = authenticationTime;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }
}


